package defs

type Error struct {
	Error     string `json:"error"`
	ErrorCode string `json:"error_code"`
}

type ErrResponse struct {
	HttpSC int
	Error  Error
}

var (
	ErrResponseBodyParseFailed = ErrResponse{HttpSC: 400, Error: Error{Error: "Request body is invalid.", ErrorCode: "001"}}
	ErrorNotAuthUser           = ErrResponse{HttpSC: 401, Error: Error{Error: "User authentication failed.", ErrorCode: "002"}}
	ErrorDBError               = ErrResponse{HttpSC: 500, Error: Error{Error: "DB operation failed.", ErrorCode: "003"}}
	ErrorInternalFault         = ErrResponse{HttpSC: 500, Error: Error{Error: "Internal server error.", ErrorCode: "004"}}
)
